<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>商品表</title>
    <#include "/header.html">
    <!-- 文件上传 -->
    <link rel="stylesheet" href="${request.contextPath}/statics/plugins/oss/style.css">
    <script type="text/javascript" src="${request.contextPath}/statics/plugins/oss/js/plupload.full.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/statics/plugins/oss/ziyun_library.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
        <!--<#if shiro.hasPermission("goods:goods:update")>-->
            <!--<a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
        <!--</#if>-->
        <!--<#if shiro.hasPermission("goods:goods:delete")>-->
            <!--<a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
        <!--</#if>-->
            <form class="form-inline" role="form">
                <a class="btn btn-default btn-sm" @click="reset"><i class="fa fa-refresh"></i></a>
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.name" @keyup.enter="query" placeholder="商品名称">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.goodsId" @keyup.enter="query" placeholder="SPU">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.marketable" @keyup.enter="query">
                        <option class="form-control input-sm" value="">上下架状态</option>
                        <option class="form-control input-sm" value="puton">上架</option>
                        <option class="form-control input-sm" value="pulloff">下架</option>
                        <option class="form-control input-sm" value="delete">删除</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm"  v-model="q.goodsType" @keyup.enter="query">
                        <option class="form-control input-sm"  value="">全部商品</option>
                        <option class="form-control input-sm"  value="standard">普通商品</option>
                        <option class="form-control input-sm"  value="paper">大纸商品</option>
                        <option class="form-control input-sm"  value="copy">复印商品</option>
                        <option class="form-control input-sm"  value="print">印刷商品</option>
                        <option class="form-control input-sm"  value="material">广告物料</option>
                        <option class="form-control input-sm"  value="fast">快印商品</option>
                        <option class="form-control input-sm"  value="design">设计商品</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm"  v-model="q.self" @keyup.enter="query">
                        <option class="form-control input-sm"  value="">是否自营</option>
                        <option class="form-control input-sm"  value="1">自营</option>
                        <option class="form-control input-sm"  value="0">非自营</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm"  v-model="q.hide" @keyup.enter="query">
                        <option class="form-control input-sm"  value="">是否屏蔽</option>
                        <option class="form-control input-sm"  value="1">屏蔽</option>
                        <option class="form-control input-sm"  value="0">不屏蔽</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm"  v-model="q.opMark" @keyup.enter="query">
                        <option class="form-control input-sm"  value="">发布归属</option>
                        <option class="form-control input-sm"  value="1">非本人</option>
                        <option class="form-control input-sm"  value="0">本人</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.examineStatus" @keyup.enter="query">
                        <option class="form-control input-sm" value="">审核状态</option>
                        <option class="form-control input-sm" value=0>未审核</option>
                        <option class="form-control input-sm" value=1>审核通过</option>
                        <option class="form-control input-sm" value=2>审核失败</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.stageType" @keyup.enter="query">
                        <option class="form-control input-sm" value="">上架平台</option>
                        <option class="form-control input-sm" value=0>紫云/pop</option>
                        <option class="form-control input-sm" value=1>紫云网</option>
                        <option class="form-control input-sm" value=2>pop平台</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <#if shiro.hasPermission("goods:goods:hideGoods")>
                    <div class="form-group">
                        <!--<button  class="form-control input-sm" @click="hideGoods();return false;">屏蔽商品不在商城展示</button>-->
                        <el-button type="primary" plain @click="hideGoods" size="small">屏蔽商品不在商城展示</el-button>
                    </div>&nbsp;&nbsp;&nbsp;
                </#if>
                <#if shiro.hasPermission("goods:goods:changeOpUser")>
                    <div class="form-group">
                        <el-button type="primary" plain @click="opMarkGoods" size="small">修改发布人归属</el-button>
                    </div>&nbsp;&nbsp;&nbsp;
                </#if>
                <#if shiro.hasPermission("goods:goods:examineGoods")>
                    <div class="form-group">
                        <el-button type="primary" plain @click="examineGoods" size="small">商品审核</el-button>
                    </div>&nbsp;&nbsp;&nbsp;
                </#if>
                <#if shiro.hasPermission("goods:goods:refreshAllCache")>
                    <div class="form-group">
                        <el-button type="primary" plain @click="refreshAllCache" size="small">刷新全部商品缓存</el-button>
                    </div>&nbsp;&nbsp;&nbsp;
                </#if>
                <!--<#if shiro.hasPermission("goods:goods:solveGoodsBugData")>-->
                    <!--<div class="form-group">-->
                        <!--<el-button type="primary" plain @click="twbGoodsImageBug" size="small">图文宝图片数据解决</el-button>-->
                    <!--</div>&nbsp;&nbsp;&nbsp;-->
                <!--</#if>-->
                   <div class="form-group">
                        <el-button type="primary" plain @click="twbCategory" size="mini">图文宝分类</el-button>
                   </div>&nbsp;&nbsp;&nbsp;
                <!--<div class="form-group">-->
                    <!--<el-button @click="solveBug">解决bug</el-button>-->
                <!--</div>&nbsp;&nbsp;&nbsp;-->
                <!--<div class="form-group">-->
                    <!--<el-button @click="solveBug">规格属性字段合并</el-button>-->
                <!--</div>&nbsp;&nbsp;&nbsp;-->
                <a class="btn btn-default btn-sm"  @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>

<!--图文宝分类添加 start-->
<div>
    <el-dialog title="图文宝分类" :visible.sync="CategoryFormVisible" width="480px">
        <el-form :model="twbCateFrom" ref="twbCateFrom" label-width="100px" center>
            <el-form-item label="商品SPU">
              <span style="font-weight:bold;padding-left: 30px;font-size:12pt"> {{twbCateFrom.goodsId}}</span>
            </el-form-item>
            <el-form-item label="图文宝分类" prop="twbCategory"
                        :rules="[ { required: true, message: '不能为空'}]">
                <el-select v-model="twbCateFrom.twbCategory" filterable remote
                           reserve-keyword placeholder="请输入图文宝分类关键词"
                           :remote-method="remoteMethod" :loading="loading" clearable style="width: 340px">
                    <el-option label="无" :value="0"></el-option>
                    <el-option v-for="item in twbCategoryList"
                               :key="item.categoryId"
                               :label="item.categoryName+' '+formatter(item.categoryType)"
                               :value="item.categoryId">
                   </el-option>
                </el-select>
            </el-form-item>
            <el-form-item center>
                <el-button type="primary" id="click1" @click="submitForm('twbCateFrom')">提交
                </el-button>
                <el-button @click="resetForm('twbCateFrom')">重置</el-button>
            </el-form-item>
        </el-form>
    </el-dialog>
</div>
<!--图文宝分类添加 end-->

    </div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal" style="width: 100%;">
        <div class="form-group" style="display:none;">
            <div class="col-sm-2 control-label">商品编号</div>
            <div class="col-sm-2">
                <input type="text" class="form-control input-sm" v-model="goods.goodsNo" placeholder="商品编号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商品名称</div>
            <div class="col-sm-2">
                <input type="text" class="form-control input-sm" v-model="goods.name" placeholder="商品名称"/>
            </div>
        </div>
        <div class="form-group" >
            <div class="col-sm-2 control-label">产品上架平台:</div>
            <div class="col-sm-2">
                <select v-model="goods.stageType" :disabled="goods.pointGoods?true:false" class="form-control">
                    <option value="0">紫云网/pom平台</option>
                    <option value="1">紫云网</option>
                    <option value="2">pom平台</option>
                </select>
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">分类id</div>-->
            <!--<div class="col-sm-2">-->
                <!--<input type="text" class="form-control input-sm" v-model="goods.categoryId" placeholder="分类"/>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="col-sm-2 control-label">分类名</div>
            <div class="col-sm-2">
                <input type="text" readonly="true" class="form-control input-sm" v-model="goods.categoryName" placeholder="分类"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商品模板名</div>
            <div class="col-sm-2">
                <input type="text" readonly="true" class="form-control input-sm" v-model="goods.templateName" placeholder="分类"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">品牌ID</div>
            <div class="col-sm-2">
                <select v-model="goods.brandId" class="form-control">
                    <option v-for="goodBrand in goodBrands" v-bind:value="goodBrand.brandId">{{goodBrand.brandName}}</option>
                </select>
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">运费模板id</div>-->
            <!--<div class="col-sm-2">-->
                <!--<input type="text" class="form-control input-sm" v-model="goods.freightId" placeholder="运费模板id"/>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="col-sm-2 control-label">运费模板</div>
            <div class="col-sm-2">
                <select v-model="goods.freightId" class="form-control">
                    <option v-for="freightTemplate in freightTemplates" v-bind:value="freightTemplate.templateId">{{freightTemplate.templateName}}</option>
                </select>
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">是否允许奖励金购买:</div>-->
            <!--<div class="col-sm-2">-->
                <!--<el-switch-->
                        <!--style="display: block"-->
                        <!--v-model="goods.reward"-->
                        <!--active-color="#87CEFF"-->
                        <!--inactive-color="#F2F2F2"-->
                        <!--active-text="允许"-->
                        <!--inactive-text="禁止">-->
                <!--</el-switch>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group"
             v-if="goods.goodsType == 'print' || goods.goodsType == 'fast'">
            <div class="col-sm-2 control-label">商品参数属性配置:</div>
            <div class="col-sm-1">
                <el-button type="info" plain @click="quoteAttributeLayer = true">详情</el-button>
            </div>
        </div>
        <div class="form-group" v-if="(goods.stageType == 0 || goods.stageType == 1)&& goods.goodsType == 'print' || goods.goodsType == 'fast'">
            <div class="col-sm-2 control-label">紫云网利润系数:</div>
            <div class="col-sm-1">
                <input type="text" class="form-control input-sm" @blur="loadPrice('ziyun')"  v-model="goods.ziyunPriceCoefficient" placeholder="请输入紫云网利润系数">
            </div>
            <div class="col-sm-1">
                <!--<el-button type="info" plain @click="openStepPrice('ziyun')">详情</el-button>-->
                <input class="btn btn-default" @click="openStepPrice('ziyun')" type="button" value="紫云网阶梯价详情">
            </div>
        </div>
        <div class="form-group" v-if="(goods.stageType == 0 || goods.stageType == 2) && goods.goodsType == 'print' || goods.goodsType == 'fast'">
            <div class="col-sm-2 control-label">pop平台利润系数:</div>
            <div class="col-sm-1">
                <input type="text" class="form-control input-sm" @blur="loadPrice('pop')" v-model="goods.popPriceCoefficient" placeholder="请输入pop平台利润系数">
            </div>
            <div class="col-sm-1">
                <input class="btn btn-default" @click="openStepPrice('pop')" type="button" value="pop阶梯价详情">
            </div>
        </div>
        <div v-if="goods.goodsType== 'standard' || goods.goodsType== 'paper' || goods.goodsType== 'material' ||goods.goodsType== 'design'||goods.goodsType== 'copy'">
            <div class="form-group">
                <div class="col-sm-2 control-label">规格属性</div>
                <div class="col-sm-5">
                    <span v-for="attributeName in attributeNames">{{attributeName}}&nbsp;&nbsp;</span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">工艺属性</div>
                <div class="col-sm-5">
                    <div v-if="JSON.stringify(craftNames)!='[]'">
                        <span v-for="craftName in craftNames">{{craftName}}&nbsp;&nbsp;</span>
                    </div>
                    <div v-else>无工艺</div>
                </div>
            </div>
            <!--<div class="form-group" v-if="JSON.stringify(craftNames)!='[]'">-->
                <!--<div class="col-sm-2 control-label">产品可选工艺值</div>-->
                <!--<div class="col-sm-5">-->
                    <!--<div v-if="JSON.stringify(craftNames)!='[]'">-->
                        <!--<span v-for="craft in goods.craftValues">{{craft}}&nbsp;&nbsp;</span>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
            <!-- 新版本规格属性选择 -->
            <div class="form-group" v-if="!goods.dateFlag">
                <div class="col-sm-2 control-label">新版本选择规格工艺:</div>
                <div class="col-sm-2">
                    <el-button type="info" plain @click="choiceNewAttributeAndCraft()">选择规格工艺</el-button>
                </div>
            </div>


            <div class="form-group">
                <!--<div class="col-sm-2 control-label">商品规格属性:</div>-->
                <div class="col-sm-12">
                    <table style="text-align: center;" class="controls table-striped table-bordered table-condensed">
                        <thead>
                        <th v-for="attributeName in attributeNames">{{attributeName}}&nbsp;</th>
                        <!--<th><span>工艺:</span><span v-for="craftName in craftNames">{{craftName}}&nbsp;</span></th>-->
                        <th style="width:100px;">上下架状态</th>
                        <th>sku</th>
                        <th>库存</th>
                        <th>起订量</th>
                        <th>重量(kg)</th>
                        <th>单位</th>
                        <!--<th v-if="goods.goodsType != 'paper'">售价</th>-->
                        <!--<th v-else-if="goods.goodsType == 'paper'">卷筒售价</th>-->
                        <!--<td v-if="goods.goodsType == 'paper' && goods.isUnit == '1'">平板售价</td>-->
                        <!--<th v-if="goods.goodsType != 'paper'">成本价</th>-->
                        <!--<th v-else-if="goods.goodsType == 'paper'">卷筒成本价</th>-->
                        <!--<td v-if="goods.goodsType == 'paper' && goods.isUnit == '1'">平板成本价</td>-->
                        <!--<th v-if="goods.goodsType != 'paper'">市场价</th>-->
                        <!--<th v-else-if="goods.goodsType == 'paper'">卷筒市场价</th>-->
                        <!--<td v-if="goods.goodsType == 'paper' && goods.isUnit == '1'">平板市场价</td>-->
                        <th v-if="(goods.stageType == 0 || goods.stageType ==1) && (goods.goodsType != 'print' || goods.goodsType != 'fast')">紫云网售价</th>
                        <th v-else-if="(goods.stageType == 0 || goods.stageType ==1) && goods.goodsType == 'paper'">紫云网卷筒售价</th>
                        <th v-if="(goods.stageType == 0 || goods.stageType ==1) && goods.goodsType == 'paper' && goods.isUnit == '1'">紫云网平板售价</th>
                        <th v-if="(goods.stageType == 0 || goods.stageType ==2) && (goods.goodsType != 'print' || goods.goodsType != 'fast')">pop售价</th>
                        <th v-else-if="(goods.stageType == 0 || goods.stageType ==2) && goods.goodsType == 'paper'">pop卷筒售价</th>
                        <th v-if="(goods.stageType == 0 || goods.stageType ==2) && goods.goodsType == 'paper' && goods.isUnit == '1'">pop平板售价</th>
                        <th v-if="goods.goodsType != 'print' || goods.goodsType != 'fast'">成本价</th>
                        <th v-else-if="goods.goodsType == 'paper'">卷筒成本价</th>
                        <th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'">平板成本价</th>
                        <th v-if="goods.goodsType != 'print' || goods.goodsType != 'fast'">市场价</th>
                        <th v-else-if="goods.goodsType == 'paper'">卷筒市场价</th>
                        <th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'">平板市场价</th>
                        <th>是否默认</th>
                        </thead>
                        <tbody>
                        <tr v-for="(goodsProduct,index) in goodsProductList">
                            <th v-for="goodsOption in goodsProduct.goodsOptionList">{{goodsOption.optionName}}&nbsp;</th>
                            <!--<th><span v-for="goodsCraftOption in goodsProduct.goodsCraftOptionList">{{goodsCraftOption.optionName}}&nbsp;</span></th>-->
                            <th>
                                <!--<input class="form-control" v-model="goodsProduct.marketable"/>-->
                                <select class="form-control" v-model="goodsProduct.marketable">
                                    <option class="form-control" value="puton">上架</option>
                                    <option class="form-control" value="pulloff">下架</option>
                                    <option class="form-control" value="delete">删除</option>
                                </select>
                            </th>
                            <th><input class="form-control" readonly="true" v-model="goodsProduct.productId"/></th>
                            <th><input class="form-control" v-model="goodsProduct.store"/></th>
                            <th><input class="form-control" v-model="goodsProduct.minBuyNum"/></th>
                            <th><input class="form-control" v-model="goodsProduct.weight"/></th>
                            <th>
                                <!--<input class="form-control" v-model="goodsProduct.unit"/>-->
                                <select v-model="goodsProduct.unit" class="form-control input-sm">
                                    <option v-for="unitLibrary in unitLibraryList" v-bind:value="unitLibrary.unitName">{{unitLibrary.unitName}}</option>
                                </select>
                            </th>

                            <th v-if="(goods.stageType == 0 || goods.stageType ==1) && (goods.goodsType != 'print' || goods.goodsType != 'fast')"><input  class="form-control" v-model="goodsProduct.totalPrice"/></th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==1) && (goods.goodsType == 'paper' && goods.isUnit == '1')"><input class="form-control" v-model="goodsProduct.expandPrice"/></th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==2) && (goods.goodsType != 'print' || goods.goodsType != 'fast')"><input  class="form-control" v-model="goodsProduct.totalPricePop"/></th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==2) && (goods.goodsType == 'paper' && goods.isUnit == '1')"><input class="form-control" v-model="goodsProduct.expandPricePop"/></th>
                            <th><input class="form-control" v-model="goodsProduct.cost"/></th>
                            <th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="goodsProduct.lCost"/></th>
                            <th><input class="form-control" v-model="goodsProduct.marketPrice"/></th>
                            <th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="goodsProduct.lMarketPrice"/></th>
                            <th>
                                <!--<input class="form-control" v-model="goodsProduct.defaultProduct"/>-->
                                <el-switch
                                        v-model="goodsProduct.defaultProduct"
                                        @change="changeDefault(index,'product')"
                                        active-color="#87CEFF"
                                        inactive-color="#F2F2F2">

                                </el-switch>
                            </th>
                        </tr>
                        <tr  v-for="(itemList,index) in addItemList">
                            <th v-for="attr in itemList.spec">{{attr.optionName}}&nbsp;</th>
                            <!--<th><span v-for="goodsCraftOption in goodsProduct.goodsCraftOptionList">{{goodsCraftOption.optionName}}&nbsp;</span></th>-->
                            <th>
                                <!--<input class="form-control" v-model="goodsProduct.marketable"/>-->
                                <select class="form-control" v-model="itemList.marketable">
                                    <option class="form-control" value="puton">上架</option>
                                    <option class="form-control" value="pulloff">下架</option>
                                    <option class="form-control" value="delete">删除</option>
                                </select>
                            </th>
                            <th><input class="form-control" v-model="itemList.productId" readonly placeholder="待生成"/></th>
                            <th><input class="form-control" v-model="itemList.store"/></th>
                            <th><input class="form-control" v-model="itemList.minBuyNum"/></th>
                            <th><input class="form-control" v-model="itemList.weight"/></th>
                            <th>
                                <!--<input class="form-control" v-model="itemList.unit"/>-->
                                <select v-model="itemList.unit" class="form-control input-sm">
                                    <option v-for="unitLibrary in unitLibraryList" v-bind:value="unitLibrary.unitName">{{unitLibrary.unitName}}</option>
                                </select>
                            </th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==1) && (goods.goodsType != 'print' || goods.goodsType != 'fast')"><input  class="form-control" v-model="itemList.totalPrice"/></th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==1) && (goods.goodsType == 'paper' && goods.isUnit == '1')"><input class="form-control" v-model="itemList.expandPrice"/></th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==2) && (goods.goodsType != 'print' || goods.goodsType != 'fast')"><input  class="form-control" v-model="itemList.totalPricePop"/></th>
                            <th v-if="(goods.stageType == 0 || goods.stageType ==2) && (goods.goodsType == 'paper' && goods.isUnit == '1')"><input class="form-control" v-model="itemList.expandPricePop"/></th>
                            <th><input class="form-control" v-model="itemList.cost"/></th>
                            <th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="itemList.lCost"/></th>
                            <th><input class="form-control" v-model="itemList.marketPrice"/></th>
                            <th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="itemList.lMarketPrice"/></th>
                            <!--<th><input class="form-control" v-model="itemList.totalPrice"/></th>-->
                            <!--<th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="itemList.expandPrice"/></th>-->
                            <!--<th><input class="form-control" v-model="itemList.cost"/></th>-->
                            <!--<th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="itemList.lCost"/></th>-->
                            <!--<th><input class="form-control" v-model="itemList.marketPrice"/></th>-->
                            <!--<th v-if="goods.goodsType == 'paper' && goods.isUnit == '1'"><input class="form-control" v-model="itemList.lMarketPrice"/></th>-->
                            <th>
                                <!--<input class="form-control" v-model="goodsProduct.defaultProduct"/>-->
                                <el-switch
                                        v-model="itemList.defaultProduct"
                                        @change="changeDefault(index,'item')"
                                        active-color="#87CEFF"
                                        inactive-color="#F2F2F2">
                                </el-switch>
                            </th>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="form-group" v-if="goods.stageType == 0">
                <div class="col-sm-2 control-label">切换售价显示</div>
                <div class="col-sm-2">
                    <el-switch
                            style="display: block"
                            @change="changePrice"
                            v-model="goods.platform"
                            active-color="#87CEFF"
                            inactive-color="#F2F2F2"
                            active-text="pom平台"
                            inactive-text="紫云网">
                    </el-switch>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">设计服务</div>
                <div class="col-sm-2">SPU</div>
                <div class="col-sm-2">商品名称</div>
                <div class="col-sm-2">操作</div>
            </div>
        </div>
        <div class="form-group" v-if="JSON.stringify(designGood)!='{}'">
            <div class="col-sm-2 control-label"></div>
            <div class="col-sm-2">{{designGood.goodsId}}</div>
            <div class="col-sm-2">{{designGood.name}}</div>
            <div class="col-sm-2"><a>删除</a></div>
        </div>
        <div class="form-group" v-if="JSON.stringify(designGood)!='{}'">
            <div class="col-sm-2 control-label"></div>
            <div class="col-sm-2"><a v-if="JSON.stringify(designGood)!='{}'" @click="addDesign">修改</a><a @click="addDesign" v-else>添加</a></div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">是否允许无库存销售</div>
            <div class="col-sm-2">
                <el-switch
                        style="display: block"
                        v-model="goods.noStore"
                        active-color="#87CEFF"
                        inactive-color="#F2F2F2"
                        active-text="允许"
                        inactive-text="禁止">
                </el-switch>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">上下架状态</div>
            <div class="col-sm-2">
                <!--<input type="text" class="form-control input-sm" v-model="goods.marketable" placeholder="上架 (1.上架，2.下架,3.删除)"/>-->
                <select class="form-control" v-model="goods.marketable">
                    <option class="form-control"  value="puton">上架</option>
                    <option class="form-control"  value="pulloff">下架</option>
                    <option class="form-control"  value="delete">删除</option>
                </select>
            </div>
        </div>
        <div class="form-group" v-if="goods.stageType == 1">
            <div class="col-sm-2 control-label">是否积分商品</div>
            <div class="col-sm-2">
                <el-switch
                        style="display: block"
                        v-model="goods.pointGoods"
                        active-color="#87CEFF"
                        inactive-color="#F2F2F2"
                        active-text="是"
                        inactive-text="否">
                </el-switch>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">排序</div>
            <div class="col-sm-2">
                <input type="text" class="form-control input-sm" v-model="goods.goodsOrder" placeholder="排序"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">单位</div>
            <div class="col-sm-2">
                <!--<input type="text" class="form-control input-sm" v-model="goods.unit" placeholder="单位"/>-->
                <select v-model="goods.unit" class="form-control input-sm">
                    <option v-for="unitLibrary in unitLibraryList" v-bind:value="unitLibrary.unitName">{{unitLibrary.unitName}}</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">商品简介</div>
            <div class="col-sm-5">
                <input type="text" class="form-control input-sm" v-model="goods.brief" placeholder="商品简介"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">视频url</div>
            <span v-if="JSON.stringify(videoEntity) != '{}'">
                <span style="margin-right: 10px;;margin-left: 10px;" >
                    <img v-bind:src="window.parent.vm.ossHost+videoEntity.imageUrl" style="width:100px;text-align:left">
                    <a href="javascript:void(0)" @click="delVideo(videoEntity.id)">删除</a>
                </span>
            </span>
            <span>
                <a class="btn btn-default" id="upload3" >上传视频</a>
            </span>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">默认图片urls</div>
            <!--<div class="col-sm-2">-->
            <!--<input type="text" class="form-control input-sm" v-model="goods.imageUrls" placeholder="详细介绍图片urls"/>-->
            <!--</div>-->
            <span v-if="JSON.stringify(imageList) != '[]'">
                <span style="margin-right: 10px;;margin-left: 10px;"  v-for="(image,index) in imageList">
                    <img v-if="goods.dateFlag" v-bind:src="'http://image.11ziyun.com/'+image.imageUrl" style="width:100px;text-align:left">
                    <img v-else v-bind:src="window.parent.vm.ossHost+image.imageUrl" style="width:100px;text-align:left">
                    <el-button @click="delImage(index,image.id)">删除</el-button>
                </span>
            </span>
            <span>
                <el-button  id="upload1">上传默认图片</el-button>
            </span>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">详细介绍图片urls</div>
            <!--<div class="col-sm-2">-->
            <!--<input type="text" class="form-control input-sm" v-model="goods.infoUrls" placeholder="详细介绍图片urls"/>-->
            <!--</div>-->
            <span v-if="JSON.stringify(infoList) != '[]'">
                <span style="margin-right: 10px;;margin-left: 10px;"  v-for="(info,index) in infoList">
                    <img v-bind:src="window.parent.vm.ossHost+info.imageUrl" style="width:100px;text-align:left">
                    <el-button href="javascript:void(0)" @click="delInfo(index,info.id)">删除</el-button>
                </span>
            </span>
            <span>
                <el-button  id="upload2">上传详细图片</el-button>
            </span>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">配送及售后</div>
            <div class="col-sm-5">
                <input type="text" class="form-control input-sm" v-model="goods.afterSale" placeholder="配送及售后"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">起订量</div>
            <div class="col-sm-2">
                <input type="text" class="form-control input-sm" v-model="goods.minBuyNum" placeholder="起订量"/>
            </div>
            <div class="col-sm-4">
                (温馨提示:最小起订量请配置正数)
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">购买类型</div>
            <div class="col-sm-2">
                <!--<input type="text" class="form-control input-sm" v-model="goods.goodsType" placeholder="购买类型"/>-->
                <select class="form-control" disabled="disabled" v-model="goods.goodsType">
                    <option class="form-control"  value="standard">普通商品</option>
                    <option class="form-control"  value="paper">大纸商品</option>
                    <option class="form-control"  value="copy">复印商品</option>
                    <option class="form-control"  value="print">印刷商品</option>
                    <option class="form-control"  value="material">广告物料</option>
                    <option class="form-control"  value="fast">快印商品</option>
                    <option class="form-control"  value="design">设计商品</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">工艺价格设置:</div>
            <div class="col-sm-1">
                <el-button type="info" plain @click="craftPrice()">详情</el-button>
            </div>
        </div>
        <div v-if="goods.goodsType == 'print' || goods.goodsType == 'fast'">
            <div class="form-group">
                <div class="col-sm-2 control-label">机器价格设置:</div>
                <div class="col-sm-1">
                    <el-button type="info" plain @click="machinePrice()">详情</el-button>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">材料价格设置:</div>
                <div class="col-sm-1">
                    <el-button type="info" plain @click="materialPrice()">详情</el-button>
                </div>
            </div>
            <div class="form-group" v-if="goods.goodsType == 'fast'">
                <div class="col-sm-2 control-label">组合计价:</div>
                <div class="col-sm-1">
                    <el-button type="info" plain @click="fastGroupPrice()">详情</el-button>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">紫云网阶梯利润系数:</div>
                <div class="col-sm-1">
                    <el-button type="info" plain @click="openStepPrice('ziyun')">详情</el-button>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">pop平台阶梯利润系数:</div>
                <div class="col-sm-1">
                    <el-button type="info" plain @click="openStepPrice('pop')">详情</el-button>
                </div>
            </div>
        </div>
        <div class="form-group" style="display:none">
            <div class="col-sm-2 control-label">关联设计id</div>
            <div class="col-sm-2">
                <input type="text" class="form-control input-sm" v-model="goods.relateDesignIds" placeholder="关联设计id"/>
            </div>
        </div>
        <div class="form-group"  style="display:none;">
            <div class="col-sm-2 control-label">关键字</div>
            <div class="col-sm-3">
                <input type="text" class="form-control input-sm" v-model="goods.keywords" placeholder="关键字"/>
            </div>
        </div>
        <!--<div class="form-group" >-->
            <!--<div class="col-sm-2 control-label">是否供应商</div>-->
            <!--<div class="col-sm-2">-->
                <!--<el-switch-->
                        <!--style="display: block"-->
                        <!--v-model="goods.self"-->
                        <!--active-color="#87CEFF"-->
                        <!--inactive-color="#F2F2F2"-->
                        <!--active-text="自营"-->
                        <!--inactive-text="供应商">-->
                <!--</el-switch>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">卖家ID</div>-->
            <!--<div class="col-sm-2">-->
                <!--<input type="text" class="form-control input-sm" v-model="goods.sellerId" placeholder="卖家ID"/>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">模板图片id集合</div>-->
            <!--<div class="col-sm-10">-->
                <!--<input type="text" class="form-control input-sm" v-model="goods.goodsTemplateIds" placeholder="模板图片id集合"/>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">是否屏蔽（true：是；false：否）</div>-->
            <!--<div class="col-sm-2">-->
                <!--&lt;!&ndash;<input type="text" class="form-control input-sm" v-model="goods.disabled" placeholder="是否屏蔽（true：是；false：否）"/>&ndash;&gt;-->
                <!--<el-switch-->
                        <!--style="display: block"-->
                        <!--v-model="goods.disabled"-->
                        <!--active-color="#87CEFF"-->
                        <!--inactive-color="#F2F2F2"-->
                        <!--active-text="屏蔽"-->
                        <!--inactive-text="不屏蔽">-->
                <!--</el-switch>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">创建人</div>-->
            <!--<div class="col-sm-2">-->
                <!--<input type="text" readonly="true" class="form-control input-sm" v-model="goods.createName" placeholder="创建人"/>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
            <!--<div class="col-sm-2 control-label">创建时间</div>-->
            <!--<div class="col-sm-2">-->
                <!--<input type="text" readonly="true" class="form-control input-sm" v-model="goods.createTime" placeholder="创建时间"/>-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" id="saveBtn" class="btn btn-primary  btn-sm" @click="updateGood" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
        </div>
    </form>
</div>
<!--设计服务layer-->
<div id="designLayer" style="display: none;">
    <div class="grid-btn">
        <form class="form-inline" role="form">
            <div class="form-group">
                <input type="text" class="form-control" v-model="designQuery.spu"  placeholder="设计商品spu">
            </div>
            <div class="form-group">
                <input type="text" class="form-control" v-model="designQuery.name"  placeholder="设计商品名">
            </div>
            <a class="btn btn-primary "  @click="reloadDesign"><i class="fa fa-search"></i>&nbsp;查询</a>
        </form>
    </div>
    <table id="designJqGrid"></table>
    <div id="designJqGridPager"></div>
</div>
    <el-dialog title="新版本规格工艺选择" :visible.sync="attributeAndCraftLayer" @close="rollBack" width= "90%">
        <!-- 自定义选项dialog -->
        <el-dialog width="30%" title="内层 Dialog" :visible.sync="addOptionDialog" append-to-body>
            <el-row>
                <el-col :span="6"><lable >选项名称</lable></el-col>
                <el-col :span="18" ><el-input v-model="addPrivateOption.optionName" autocomplete="off"></el-input></el-col>
            </el-row>
            <el-row>
                <el-col :span="6"><lable >选项值</lable></el-col>
                <el-col :span="18"><el-input v-model="addPrivateOption.optionValue" autocomplete="off"></el-input></el-col>
            </el-row>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="savePrivateOption">确定</el-button>
                <el-button type="primary" @click="cancelPrivateOption">取消</el-button>
            </div>
        </el-dialog>

        <!-- 规格选择 -->
        <el-table :data="attributeAndCraftData.attributeList" border style="width: 100%">
            <el-table-column prop="attributeName" label="规格名称" width="200px"> </el-table-column>
            <el-table-column  label="规格选项" width="800px">
                <template slot-scope="scope">
                    <el-select v-model="scope.row.optionSelectedList" multiple placeholder="请选择" value-key="optionId" @remove-tag="removeAttribute(scope.row,this)" style="width: 100%">
                        <!--<el-select v-model="select" multiple placeholder="请选择" value-key="optionId" style="width: 100%">-->
                        <el-option
                                v-for="goodsOption in scope.row.goodsOptionList"
                                :key="goodsOption.optionId"
                                :label="goodsOption.optionName"
                                :value="goodsOption">
                        </el-option>
                        <!-- :disabled="!goodsOption.disabled" -->
                    </el-select>
                </template>
            </el-table-column>
            <!--<el-table-column label="操作" width="250">-->
                <!--<template slot-scope="scope">-->
                    <!--<el-button @click="optionDialog(scope.row)">自定义选项</el-button>-->
                <!--</template>-->
            <!--</el-table-column>-->
        </el-table>
        <!-- 工艺选择 -->
        <el-table v-if="!isBlank(attributeAndCraftData.craftAttributeList)" :data="attributeAndCraftData.craftAttributeList" border style="width: 100%">
            <el-table-column prop="attributeName" label="工艺名称" width="200px"> </el-table-column>
            <el-table-column  label="工艺选项" width="800px">
                <template slot-scope="scope">
                    <el-select v-model="scope.row.optionSelectedList" multiple placeholder="请选择" value-key="optionId" style="width: 100%">
                        <el-option
                                v-for="goodsOption in scope.row.goodsOptionList"
                                :key="goodsOption.optionId"
                                :label="goodsOption.optionName"
                                :value="goodsOption">
                        </el-option>
                    </el-select>
                </template>
            </el-table-column>
            <!--<el-table-column label="操作" width="250">-->
                <!--<template slot-scope="scope">-->
                    <!--<el-button @click="optionDialog(scope.row)">自定义选项</el-button>-->
                <!--</template>-->
            <!--</el-table-column>-->
            <!--<el-table-column>-->
                <!--<template slot-scope="scope">-->
                    <!--<el-switch style="display: block" disabled v-model="scope.row.joinAttribute"-->
                               <!--active-color="#87CEFF" inactive-color="#F2F2F2"-->
                               <!--active-text="允许" inactive-text="禁止">-->
                    <!--</el-switch>-->
                <!--</template>-->
            <!--</el-table-column>-->
        </el-table>
        <div slot="footer" class="dialog-footer">
            <el-button type="primary" @click="builderDate">确定</el-button>
        </div>
    </el-dialog>

    <!-- 报价基础属性配置 -->
    <el-dialog class="xueqz" title="基础属性配置" :visible.sync="quoteAttributeLayer" @close="rollbackQuote" width="90%">
        <div v-for="(quoteTemplate,index) in allQuoteTemplate" style="border:1px solid #000">
            <div class="grid-content bg-purple-light" style = "text-align:center;float:left;"><h2 style="color:#303133; height:50px;">&nbsp;&nbsp;&nbsp;&nbsp;部&nbsp;件&nbsp;:&nbsp;{{quoteTemplate.partsName}}</h2></div>
            <table style="text-align: center;" width="100%">
                <thead>
                <th style="height: 50px;">普通属性选项</th>
                </thead>
                <tbody>
                <tr style="height: 50px;">
                    <td>选项名</td>
                    <td>选项值</td>
                    <td>默认选项</td>
                </tr>
                <tr v-for="normalAttributeOption in quoteTemplate.normalAttributeOptionList">
                    <td width="90px">{{normalAttributeOption.attributeName}}</td>
                    <td>
                        <el-select style="width: 90%" v-model="normalAttributeOption.normalSelectedTempOptionList"
                                   value-key="id" @change="changeNormal(normalAttributeOption)" multiple=true
                                   filterable="true" placeholder="请选择">
                            <el-option
                                    v-for="normalOption in normalAttributeOption.normalOptionList"
                                    :key="normalOption.id"
                                    :label="normalOption.optionName"
                                    :value="normalOption">
                            </el-option>
                        </el-select>
                    </td>
                    <td width="200px">
                        <el-select style="width: 95%" v-model="normalAttributeOption.normalDefaultOption"
                                   placeholder="请选择">
                            <el-option
                                    v-for="normalSelectedTempOption in normalAttributeOption.normalSelectedTempOptionList"
                                    :key="normalSelectedTempOption.id"
                                    :label="normalSelectedTempOption.optionName"
                                    :value="normalSelectedTempOption.id">
                            </el-option>
                        </el-select>
                    </td>
                </tr>
                </tbody>
            </table>
            <table style="text-align: center;" width="100%">
                <thead>
                <tr>材料属性选项</tr>
                </thead>
                <tbody>
                <tr>
                    <td>默认克重</td>
                    <td style="width:300px;"><!-- 被选择的材料 -->
                        <el-select style="width: 95%"
                                   v-model="quoteTemplate.materialAttributeOptionData.materialDefaultOption"
                                   @change="choiceMaterial(index,quoteTemplate.materialAttributeOptionData.materialDefaultOption)"
                                   placeholder="请选择">
                            <!--<el-select style="width: 90%" v-model="materialDefaultOptions[index]" @change="choiceMaterial(index,materialDefaultOptions[index])"  placeholder="请选择">-->
                            <!-- 可供选择的材料哦列表 -->
                            <el-option
                                    v-for="materialDefaultOption in quoteTemplate.materialAttributeOptionData.materialDefaultOptionList"
                                    :key="materialDefaultOption.optionKey"
                                    :label="materialDefaultOption.optionName"
                                    :value="materialDefaultOption.optionKey">
                            </el-option>
                        </el-select>
                    </td>
                    <td style="width:200px;"><!-- 被选中默认材料 -->
                        <el-select style="width: 90%"
                                   v-model="quoteTemplate.materialAttributeOptionData.materialDefaultOptionName2"
                                   placeholder="请选择">
                            <!-- 被选中默认材料的选项 -->
                            <el-option
                                    v-for="materialDefaultOptionName2 in quoteTemplate.materialAttributeOptionData.materialDefaultOptionName2List"
                                    :key="materialDefaultOptionName2.id"
                                    :label="materialDefaultOptionName2.optionName2"
                                    :value="materialDefaultOptionName2.id">
                            </el-option>
                        </el-select>
                    </td>
                </tr>
                <!-- 所有的材料列表 -->
                <tr v-for="(materialAttributeOption,index2) in quoteTemplate.materialAttributeOptionData.materialAttributeOptionList">
                    <td style="width:100px;">{{materialAttributeOption.optionName}}</td>
                    <td>
                        <!-- 已经被选择的材料列表 -->
                        <el-select style="width: 90%" v-model="materialAttributeOption.materialSelectedOptionList"
                                   @change=changeMaterial(quoteTemplate.materialAttributeOptionData,materialAttributeOption)
                                   value-key="id" multiple=true filterable="true" placeholder="请选择">
                            <!-- 所有材料列表,包含未被选择的材料 -->
                            <el-option
                                    v-for="materialOption in materialAttributeOption.materialOptionList"
                                    :key="materialOption.id"
                                    :label="materialOption.optionName2"
                                    :value="materialOption.id">
                            </el-option>
                        </el-select>
                    </td>
                    <td style="width:60px;">
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div slot="footer" class="dialog-footer">
            <el-button type="primary" @click="buildQuoteData">确定</el-button>
        </div>
    </el-dialog>
    <!-- 机器价格详情 -->
    <el-dialog title="机器价格详情" :visible.sync="machinePriceLayer" width="90%">
        <iframe v-if="goods.goodsType == 'print'"  frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../quotePrintFactory/quoteprintfactory.html"></iframe>
        <iframe v-if="goods.goodsType == 'fast'"  frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../quoteFastPrint/quotefastprint.html"></iframe>
    </el-dialog>
    <!-- 材料价格详情 -->
    <el-dialog title="材料价格详情" :visible.sync="materialPriceLayer" width="90%">
        <iframe v-if="goods.goodsType == 'print'" frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../quoteFactoryMaterial/quotefactorymaterial.html"></iframe>
        <iframe v-if="goods.goodsType == 'fast'" frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../quoteFastPrintMaterial/quotefastprintmaterial.html"></iframe>
    </el-dialog>
    <!-- 工艺价格详情 -->
    <el-dialog title="工艺价格详情" :visible.sync="craftPriceLayer" width="80%" height="90%">
        <iframe v-if="goods.goodsType == 'print'" frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../goodsCraftPrice/yinshuaCraftPrice.html"></iframe>
        <iframe v-if="goods.goodsType == 'fast'" frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../goodsCraftPrice/kuaiyinCraftPrice.html"></iframe>
        <!--<iframe v-if="!(goods.goodsType == 'fast' || goods.goodsType == 'print')" frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto v-bind:src="'../goodsCraftPrice/goodscraftpriceUpdate.html?craftId='+craftIds+'&templateId='+goodTemplate.templateId"></iframe>-->
    </el-dialog>
    <!-- 组合计价详情 -->
    <el-dialog title="组合计价详情" :visible.sync="fastGroupPricelayer" width="80%" height="90%">
        <iframe v-if="goods.goodsType == 'fast'" frameborder=0 width="90%" height="600px" name="showHere" scrolling=auto src="../quoteFastPrintGroupPrice/quotefastprintgroupprice.html"></iframe>
    </el-dialog>
    <!-- 报价商品阶梯利润系数设置 -->
    <el-dialog title="提示" :visible.sync="priceDialog" width="50%" @close="closePriceDialog">
        <el-table :data="stepPriceList" width="90%" stripe  style="width: 100%">
            <el-table-column   label="起始价格" width="180">
                <template slot-scope="scope">
                    <el-input v-model="scope.row.startPrice" type="number" min="0" placeholder="请输入"></el-input>
                </template>
            </el-table-column>
            <el-table-column label="结束价格" width="180">
                <template slot-scope="scope">
                    <el-input v-model="scope.row.endPrice" type="number" min="0" placeholder="请输入"></el-input>
                </template>
            </el-table-column>
            <el-table-column label="利润系数" width="180">
                <template slot-scope="scope">
                    <el-input v-model="scope.row.coefficient" type="number" min="0" placeholder="请输入"></el-input>
                </template>
            </el-table-column>
            <el-table-column label="操作">
                <template slot-scope="scope">
                    <el-button
                            @click.native.prevent="delRow(scope.$index, stepPriceList)"
                            type="text"
                            size="small">
                        移除
                    </el-button>
                </template>
            </el-table-column>
        </el-table>
        <input type="button" class="btn btn-primary  btn-sm" @click="addStepPriceList" value="添加阶梯价行"/>
        <span slot="footer" class="dialog-footer">
            <el-button @click="priceDialog = false">取 消</el-button>
            <el-button type="primary" @click="savePrice">确 定</el-button>
          </span>
    </el-dialog>
</div>

<script src="${request.contextPath}/statics/js/modules/goods/goods.js?_${.now?long}"></script>
<#include "/modules/goodsCraftPrice/goodsCraftPricePage.html">
</body>
</html>
